package com.dmp.onlinestore.model.dao;

import java.util.List;

import com.dmp.onlinestore.model.dto.ProductBean;
import com.dmp.onlinestore.model.dto.ProductBeanFilterSpec;
import com.dmp.onlinestore.model.dao.base.DaoException;

public interface ProductDao {
	
	// Returns a list of ProductBean's filtered by "filter".
	public List<ProductBean> getProducts(ProductBeanFilterSpec filter) throws DaoException;

	// Returns the specific ProductBean. Returns null if there is no
	// match.
	public ProductBean getProduct(int id) throws DaoException;

}
